import http from '@/utils/http'

export async function getSlideList () {
  const { data } = await http.get('v1/getBannerList')
  return data
}

export async function getExhibitionList (submitData) {
  const { data } = await http.get('v1/getExhibitionList', submitData)
  return data
}

export async function getNewsList (submitData) {
  const { data } = await http.get('v1/getNewsList', submitData)
  return data
}

export async function getExhibitionListFilterOptions () {
  const { data } = await http.get('v1/getSearchArgsList')
  return data
}

export async function getPartnerList (id, submitData) {
  const { data } = await http.get('/v1/cooperation/' + id, submitData)
  return data
}

export async function getExhibition (id) {
  const { data } = await http.get('/v1/getExhibitionContent', { params: { ex_id: id } })
  return data
}

export async function publishExhibitionCooperation (submitData) {
  const { data } = await http.post('/v1/cooperation', submitData)
  return data
}

export async function getNew (id) {
  const { data } = await http.get('/v1/getNewsContent', { params: { news_id: id } })
  return data
}

export async function getHotSearchKeywords () {
  const { data } = await http.get('/v1/getPopularSearches')
  return data
}

export async function getWechatShareInfo () {
  const { data } = await http.get('/v1/getShareInfo')
  return data
}

export async function createExhibition (submitData) {
  const { data } = await http.post('/v1/setExhibitionPublish', submitData)
  return data
}
